package com.mall.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单明细表
 * </p>
 *
 * @author Darren
 * @since 2022-08-29
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("order_sku")
@ApiModel(value="OrderSku对象", description="订单明细表")
public class OrderSku implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 1级分类
     */
    @ApiModelProperty(value = "1级分类")
    @TableField("category_one_id")
    private Integer categoryOneId;

    /**
     * 2级分类
     */
    @ApiModelProperty(value = "2级分类")
    @TableField("category_two_id")
    private Integer categoryTwoId;

    /**
     * 3级分类
     */
    @ApiModelProperty(value = "3级分类")
    @TableField("category_three_id")
    private Integer categoryThreeId;

    /**
     * SPU_ID
     */
    @ApiModelProperty(value = "SPU_ID")
    @TableField("spu_id")
    private String spuId;

    /**
     * SKU_ID
     */
    @ApiModelProperty(value = "SKU_ID")
    @TableField("sku_id")
    private String skuId;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    @TableField("order_id")
    private String orderId;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    @TableField("name")
    private String name;

    /**
     * 单价
     */
    @ApiModelProperty(value = "单价")
    @TableField("price")
    private Integer price;

    /**
     * 数量
     */
    @ApiModelProperty(value = "数量")
    @TableField("num")
    private Integer num;

    /**
     * 总金额
     */
    @ApiModelProperty(value = "总金额")
    @TableField("money")
    private Integer money;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    @TableField("image")
    private String image;


}
